package com.har01d.lang.compiler.domain.function;

import java.util.List;

import com.har01d.lang.compiler.domain.statement.Block;
import com.har01d.lang.compiler.domain.statement.FieldDeclaration;
import com.har01d.lang.compiler.generator.MethodGenerator;

public class Constructor extends Function {

    private List<FieldDeclaration> fields;

    public Constructor(FunctionSignature functionSignature, Block block) {
        super(functionSignature, block);
    }

    public void accept(MethodGenerator generator) {
        generator.generate(this);
    }

    public List<FieldDeclaration> getFields() {
        return fields;
    }

    public void setFields(List<FieldDeclaration> fields) {
        this.fields = fields;
    }

}
